/*
 * @Description:
 * @Author: zhaolei
 * @Date: 2023-04-18 19:51:34
 */

import request from '@/router/axios';

// 获取宠物记录
export function fetchList(params) {
  return request({
    url: '/core/pet/diary/page',
    method: 'get',
    params,
  });
}

// 通过id查询宠物记录详情
export function getObj(id) {
  return request({
    url: `/core/pet/diary/detail/${id}`,
    method: 'get',
  });
}
export function getPetObj(id) {
  return request({
    url: `/core/pet/diary/platform/detail/${id}`,
    method: 'get',
  });
}
// 修改宠物记录状态，屏蔽-恢复
export function updateRecordState(data) {
  return request({
    url: `/core/pet/diary/status/update`,
    method: 'put',
    data,
  });
}
//宠物记录置顶
export function topDiary(data) {
  return request({
    url: `/core/pet/diary/top`,
    method: 'put',
    data,
  });
}

// 宠物日记精选
export function choiceDiary(data) {
  return request({
    url: `/core/pet/diary/choice`,
    method: 'put',
    data,
  });
}
